package com.smartfast4j.sys.mapper;

import com.smartfast4j.sys.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
  * 系统用户表 Mapper 接口
 * 如果mp本身提供的方法不满足业务要求，那么在这个Mapper中根据业务自定义方法
 * </p>
 *
 * @author 孤傲苍狼
 * @since 2017-08-28
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 通过名字查找用户（扩展方法）
     * @param name
     * @return
     */
    User getUserByName(String name);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbggenerated
     */
    int insertSelective(User record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbggenerated
     */
    User selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(User record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sys_user
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(User record);
}